From: Keir Fraser Date: Tue, 28 Oct 2008 10:36:22 +0000 (+0000) Subject: hvm: Do not mess with APIC timer deadline if in one-shot mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14054^2~20 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=5059df0621301eb48b00fbec643e147e74b9fcd3;p=xen.git hvm: Do not mess with APIC timer deadline if in one-shot mode. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index d9730bf140..5dae7cd505 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -389,7 +389,7 @@ void create_periodic_time( * LAPIC ticks for process accounting can see long sequences of process * ticks incorrectly accounted to interrupt processing. */ - if ( pt->source == PTSRC_lapic ) + if ( !pt->one_shot && (pt->source == PTSRC_lapic) ) pt->scheduled += delta >> 1; pt->cb = cb; pt->priv = data;